package com.banyiyi.simple.pattern.visitor;

import lombok.Data;

/**
 * @ClassName TeacherElement
 * @Description TODO
 * @Author yangwm
 * @Date 2023/2/23 18:01
 * @Version 1.0
 */
@Data
public class TeacherElement implements Element{

    // 老师的特性和对访问做出的反应
    private String position;
    private int teachOfLen;

    @Override
    public void accept(Visitor visitor) {
        // 访问者访问当前对象
        visitor.visit(this);
    }
}
